#include <linux/bpf.h>

void ether_main(void *pkt, __s64 len);

void emit_record(__u16 id, __u32 *buffer, __u16 len)
{
}

__attribute((section("xdp"), used)) int runtime(struct xdp_md *xdp)
{
    void *data_end = (void *)(long)xdp->data_end;
    void *data = (void *)(long)xdp->data;
    __s64 len = data_end - data;
    ether_main(data, len);
    return XDP_PASS;
}
